|
|
|
|
|
|
|
Figure 1.4.
Class Builder automates the process of creating classes in Visual
Basic Enterprise Edition. |
|
|
|
|
|
|
|
|
Note If you added a class module to the existing project before using Class Builder, you will see an informational dialog box indicating that the hierarchy of the classes created outside Class Builder can be incorporated into Class Builder. You also cannot edit or delete members of that class. If this dialog box appears, click OK. You can always edit existing classes manually or in design tools such as Rational Rose/Visual Basic or Microsoft Visual Modeler. |
|
|
|
|
|
|
|
|
|
Not only does Class Builder automate the process of creating classes, but it also tracks the hierarchy of all your classes and collections. Class Builder also generates the skeleton code you'll need in order to implement the classes and collections, including the properties, methods, and events of each class. |
|
|
|
|
|
|
|
|
Note An event is similar to a method or function but is triggered by a human actor or an external system action. Visual Basic forms have built-in events. However, you can raise your own events as well, using the RaiseEvent keyword. Events are particularly useful in ActiveX controls. |
|
|
|
|
|
|
|
|
|
On examining the Class Builder utility environment, you'll notice the Windows Explorer-style visual representation. The standard menu and toolbar reside at the top. Below these are the Object Model pane on the left and the Properties, Methods, and Events pane on the right. |
|
|
|
|
|
|
|
|
The Object Model pane displays the hierarchy of the classes and collections in your project. If you click on a class in this pane, you make it available for editing in the |
|
|
|
|
|